package com.dddd.blog.api.post.feign;


import com.dddd.blog.blogcommon.pojo.Result;
import com.dddd.blog.blogcommon.pojo.vo.UserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 喵星球的大橘
 */
@FeignClient(name = "blogUserService",path = "/",qualifier = "blogUserService")
@Component
public interface UserVoFeignClient {

    /**
     * 远程调用获取用户
     * @param id 用户
     * @return user视图对象
     */
    @RequestMapping("/user/{id}")
    Result<UserVO> queryUserVO(@PathVariable("id") Long id);

}
